package com.miracle9.game.entity;

import com.miracle9.game.util.MyUtil;
import java.util.Date;
import javax.persistence.Entity;

@Entity
public class UserRegistLog
  extends BaseEntity
{
  private String username;
  private String nickname;
  private String promoterName;
  private int promoterId;
  private String phone;
  private String applyDate;
  private String operationDate;
  private String operatorName;
  private int applyStatus;
  private String ip;
  private String password;
  
  public int getPromoterId()
  {
    return this.promoterId;
  }
  
  public void setPromoterId(int promoterId)
  {
    this.promoterId = promoterId;
  }
  
  public String getPassword()
  {
    return this.password;
  }
  
  public void setPassword(String password)
  {
    this.password = password;
  }
  
  public String getOperatorName()
  {
    return this.operatorName;
  }
  
  public void setOperatorName(String operatorName)
  {
    this.operatorName = operatorName;
  }
  
  public String getUsername()
  {
    return this.username;
  }
  
  public void setUsername(String username)
  {
    this.username = username;
  }
  
  public String getNickname()
  {
    return this.nickname;
  }
  
  public void setNickname(String nickname)
  {
    this.nickname = nickname;
  }
  
  public String getPromoterName()
  {
    return this.promoterName;
  }
  
  public void setPromoterName(String promoterName)
  {
    this.promoterName = promoterName;
  }
  
  public String getPhone()
  {
    return this.phone;
  }
  
  public void setPhone(String phone)
  {
    this.phone = phone;
  }
  
  public String getApplyDate()
  {
    return this.applyDate;
  }
  
  public void setApplyDate(String applyDate)
  {
    this.applyDate = applyDate;
  }
  
  public String getOperationDate()
  {
    return this.operationDate;
  }
  
  public void setOperationDate(String operationDate)
  {
    this.operationDate = operationDate;
  }
  
  public int getApplyStatus()
  {
    return this.applyStatus;
  }
  
  public void setApplyStatus(int applyStatus)
  {
    this.applyStatus = applyStatus;
  }
  
  public String getIp()
  {
    return this.ip;
  }
  
  public void setIp(String ip)
  {
    this.ip = ip;
  }
  
  public static UserRegistLog create(String username, String nickName, String promoterName, int promoterId, String phone, String ip, String password)
  {
    UserRegistLog userRegistLog = new UserRegistLog();
    userRegistLog.setUsername(username);
    userRegistLog.setNickname(nickName);
    userRegistLog.setPromoterName(promoterName);
    userRegistLog.setPromoterId(promoterId);
    userRegistLog.setPhone(phone);
    userRegistLog.setApplyDate(MyUtil.dateFormatYMD_HMS_Sting(new Date()));
    userRegistLog.setPassword(password);
    userRegistLog.setIp(ip);
    return userRegistLog;
  }
}
